package touchpad;


import android.graphics.Point;
import android.view.MotionEvent;

public abstract class TouchUtilities {

		public enum FingerIndex {
			FIRST, SECOND
		}
		
	public static void getFingersPoint(MotionEvent m, Point f1, Point f2) {
		f1.x = (int) m.getAxisValue(MotionEvent.AXIS_X,
				FingerIndex.FIRST.ordinal());
		f1.y = (int) m.getAxisValue(MotionEvent.AXIS_Y,
				FingerIndex.FIRST.ordinal());
		f2.x = (int) m.getAxisValue(MotionEvent.AXIS_X,
				FingerIndex.SECOND.ordinal());
		f2.y = (int) m.getAxisValue(MotionEvent.AXIS_Y,
				FingerIndex.SECOND.ordinal());
	}
}
